/* 
 * File:   basic_operator_overload.cpp
 * Author: tandaica0612
 *
 * Created on November 22, 2008, 11:47 PM
 */

#include <stdlib.h>
#include <iostream>
#include <string>
using namespace std;
/*
 * 
 */
class Hello{
public:
    int a;
    Hello(){
    }
    Hello(int a): a(a){
    }
    Hello operator+(Hello param){//operator toan' tu? " + "
        Hello c;
        c.a = this->a + param.a;
        return c;
    }
    //
    Hello operator-(Hello param){//operator toan' tu? " + "
        Hello c;
        c.a = this->a - param.a;
        return c;
    }
};
/*
int main(int argc, char** argv) {
    Hello testa(30);
    Hello testb(40);
    Hello testc = testa + testb;
    testc = testa - testb;
    cout << testc.a;
    return (EXIT_SUCCESS);
}**/
/*
 -10
 **/
